import 'package:flutter_clx_base/flutter_clx_base.dart';

class WarningDetailController extends GetxController {
  WarningDetailController();

  _initData() {
    update(["warning_detail"]);
  }

  final Map<String, bool> expansionState = {
    'warningInfo': true,
    'processFlow': true,
  };

  void toggleCard(String cardKey) {
    if (expansionState.containsKey(cardKey)) {
      expansionState[cardKey] = !expansionState[cardKey]!;
      update(["warning_detail"]);
    }
  }

  void onTap() {}

  // @override
  // void onInit() {
  //   super.onInit();
  // }

  @override
  void onReady() {
    super.onReady();
    _initData();
  }

  // @override
  // void onClose() {
  //   super.onClose();
  // }
}
